package com.xunua.NaoZiKongBai.View;

import android.content.Context;
import android.graphics.PorterDuff;
import android.util.AttributeSet;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.content.ContextCompat;
import androidx.core.widget.ContentLoadingProgressBar;

import com.xunua.NaoZiKongBai.R;

/**
 * @user XUNUA
 * @email xunua@outlook.com
 * @creat time 2020/5/26 19:38
 */
public class LoadingProgress extends ContentLoadingProgressBar {
    public LoadingProgress(@NonNull Context context) {
        super(context);
    }

    public LoadingProgress(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        getIndeterminateDrawable().setColorFilter(ContextCompat.getColor(context, R.color.red_bg_light), PorterDuff.Mode.MULTIPLY);
    }


}
